<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">        
<script type="text/javascript" src="<?php echo Yii::app()->baseUrl . '/js/jquery-ui-1.9.2.custom.min.js' ?>"></script>
<script>
  $(document).ready(function(){
    var platform_id = <?php echo $platform_id;?> ;   
    $( "#sortable_"+platform_id).sortable();
    $( "#sortable_"+platform_id).disableSelection();
  })
  
  
</script>
<form method="post" action="">
    
<ul id="sortable_<?php echo $platform_id; ?>" class="sortable-class">
  <?php if(isset($dataGame)):?>
    <?php foreach($dataGame->data as $item):?>
    <li class="ui-state-default"><span class="ui-icon ui-icon-arrowthick-2-n-s"></span><img width="20px" height="20px" src="<?php echo Yii::app()->createUrl($item->game->image) ?>" /><?php echo $item->game->name ?><input type="hidden" name="game[]" value="<?php echo $item->id ?>"></li>  
    <?php endforeach;?>
  <?php endif;?>
</ul>
<input type="submit" value="Submit">    
</form>    